/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.goods.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 测试数据Entity
 * 
 * @author ThinkGem
 * @version 2018-04-22
 */
@Table(name = "zt_jdorder", alias = "a", columns = {
		@Column(name = "id", attrName = "id", label = "编号", isPK = true),
		@Column(name = "order", attrName = "order", label = "订单号", queryType = QueryType.LIKE),
	
		@Column(name = "freight", attrName = "freight", label = "运费"),
		
		@Column(name = "orig_price", attrName = "origPrice", label = "商品总价"),
		@Column(name = "create_date", attrName = "createDate", label = "创建时间"),
		@Column(name = "jdorderid", attrName = "jdorderid", label = "京东订单"),
		@Column(name = "pay_time", attrName = "payTime", label = "下单时间"),
		
		@Column(name = "status", attrName = "status", label = "状态"),
		
		@Column(name = "goods", attrName = "goods", label = "商品或物品信息"),		

		 },orderBy = "a.create_date DESC")
public class ZtJDorder extends DataEntity<ZtJDorder>{

	private static final long serialVersionUID = 1L;
	
	private String order;
	private Double freight;
	private Double origPrice;
	private String jdorderid;
	private String goods;
	private Date payTime;
	
	@JsonIgnore
	private Date createDate;
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private Date updateDate;
	
	private Integer pageNum;
	
	public Date getPayTime() {
		return payTime;
	}
	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}
	public Double getFreight() {
		return freight;
	}
	public void setFreight(Double freight) {
		this.freight = freight;
	}
	
	private List<ZtGoods> ztGoodsList=new ArrayList<ZtGoods>();
	
	@JsonIgnore
	public Integer getPageNum() {
		return pageNum;
	}
	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}
	
	
	public String getOrder() {
		return order;
	}
	public void setOrder(String order) {
		this.order = order;
	}
	
	
	@JsonIgnore
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	public Double getOrigPrice() {
		return origPrice;
	}
	public void setOrigPrice(Double origPrice) {
		this.origPrice = origPrice;
	}
	
	public String getGoods() {
		return goods;
	}
	public void setGoods(String goods) {
		this.goods = goods;
	}
	public String getJdorderid() {
		return jdorderid;
	}
	public void setJdorderid(String jdorderid) {
		this.jdorderid = jdorderid;
	}
	
	
	
}